<!doctype html>
<html>
<?php echo $this->fetch('head.html'); ?>

<body>

<div class="fullscreen">
        <div class="scroll_content">
            <div class="topfixed">
                <div class="t_left"><a href="/index.php?m=user"><i class="back"></i></a></div>
                <div class="t_main">超市订单</div>
            </div>
            <div class="paddingheight"></div>
            <div class="normal_tabs_box">
                <ul class="normal_tabs clearfix i5">
                <li><a href="/index.php?m=koudai_order&a=my" class="<?php if (get ( 'status' ) == 0): ?>cur<?php endif; ?>">全部</a></li>
                    <li><a href="/index.php?m=koudai_order&a=my&status=1" class="<?php if (get ( 'status' ) == 1): ?>cur<?php endif; ?>">未处理</a></li>
                    <li><a href="/index.php?m=koudai_order&a=my&status=2" class="<?php if (get ( 'status' ) == 2): ?>cur<?php endif; ?>">已确认</a></li>
                    <li><a href="/index.php?m=koudai_order&a=my&status=3" class="<?php if (get ( 'status' ) == 3): ?>cur<?php endif; ?>">配送中</a></li>
                    <li><a href="/index.php?m=koudai_order&a=my&status=4" class="<?php if (get ( 'status' ) == 4): ?>cur<?php endif; ?>">已完成</a></li>
                    
                </ul>
            </div>
            <ul class="pocket_order_record special">
            	 
                <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
                <li>
                    <div class="top_tit spe clearfix">
                        <span class="fl"><?php echo $this->_var['c']['orderno']; ?></span><span class="fr"><b class="red"><?php echo $this->_var['order_status_list'][$this->_var['c']['status']]; ?></b></span>
                    </div>
                    <div class="inner_block padding">
                        <a href="/index.php?m=koudai_order&a=show&order_id=<?php echo $this->_var['c']['order_id']; ?>" class="links">
                            <p class="p1">
                                <span class="fl">共：<span class="red"><?php echo $this->_var['c']['num']; ?>件</span> &nbsp; 合计：<span class="red">￥<?php echo $this->_var['c']['money']; ?></span></span>                              
                            </p>

                            <p class="p2">下单时间：<?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></p>


                            <p class="ico i3"><?php if ($this->_var['c']['unpay']): ?>货到付款<?php else: ?> <?php echo $this->_var['order_ispay'][$this->_var['c']['ispay']]; ?> <?php endif; ?> </p>
                        </a>
                    </div>
                </li>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            </ul>
        </div>
    </div>

</body>
</html>
